<template>
    <div>
        <div class="container p-5 shadow border border-1">
            <h1 class="h1">欢迎  {{ username }}  登录！</h1>
        </div>
    </div>
</template>

<script setup>
import { ref } from "vue";
import { useRoute } from "vue-router";

const route = useRoute()

const username = ref('') 

console.log(route.query);

if(route.query.uacc == 'admin'){
    username.value='管理员'
}else{
    username.value = route.query.uacc
}

</script>

<style lang="scss" scoped>
.container{
 width: 600px;
}
</style>